					<div class="well sidebar-nav">
<?php if (isset($profile)) { ?>

<?php require_once APPPATH.'views/bootstrap/pane_profile.php' ?>
						<br />

						<h5>GOALS</h5>
<?php $keys = array_keys($projects); 
foreach ($keys as $key) {
	if (count($projects[$key]) > 0) {
						echo '<h6 style="text-transform:uppercase" >'.$key;
						if (strcasecmp($key, 'my goals') == 0) echo ' <a href="'.controller_base_path($requestContext).'/Project/add" class="action">[add]</a>';
						echo '</h6>';
						echo '<ul class="nav nav-list">';
	foreach ($projects[$key] as $project) {
		$class = "";
		if ($project->isActive) $class = "active";
						echo '<li class="'.$class.'"><a href="'.controller_base_path($requestContext).'/Project/activateproject?activeProject='.$project->sid.'" >'.$project->name.'</a></li>';

	}
						echo '</ul>';
	}
} ?>
<?php if($projectJoinRequested != NULL) { 
						echo '<h6 style="text-transform:uppercase">WAITING</h6><ul class="nav nav-list">';
	foreach($projectJoinRequested as $requested) {
						echo '<li><a href="'.controller_base_path($requestContext).'/Project/?projectSid='.$requested->projectSid.'">'.$requested->projectName.'</a></li>'; 
	}
						echo '</ul>';
} ?>
						<br />
						<h5>RECENT DOCS</h5>
						<ul class="nav nav-list">
							<li><a href="#">MyResume.docx</a></li>
							<li><a href="#">ysahn-Portfolio.pdf</a></li>
							<li><a href="#">budget.xls</a></li>
						</ul>
						<br />
<?php require_once APPPATH.'views/bootstrap/pane_interests.php' ?>
						<br />
<?php require_once APPPATH.'views/bootstrap/pane_relations.php' ?>
<?php } else {
	// Not logged in
 ?>
						If you have account, sign in.
						Otherwise sign up and pursue a goal.
						<br />
<?php } ?>				
					</div><!--/.well -->
